package com.qst.crop.entity;

/**
 * @author YGD
 * @日期： 2025-07-07-09-21
 * @habit: like girls
 **/

import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;
import java.util.Date;

public class Finance {
    private Integer financeId;
    private Integer bankId;
    private String ownName;
    private String realName;
    private String phone;
    private String idNum;
    private Integer status;
    @NotBlank(
            message = "金额不能为空"
    )
    private BigDecimal money;
    @NotBlank(
            message = "利率不能为空"
    )
    private BigDecimal rate;
    @NotBlank(
            message = "还款周期不能为空"
    )
    private Integer repayment;
    private Date createTime;
    private Date updateTime;
    private String combinationName1;
    private String combinationPhone1;
    private String combinationIdnum1;
    private String combinationName2;
    private String combinationPhone2;
    private String combinationIdnum2;
    private String fileInfo;

    public Finance() {
    }

    public Integer getFinanceId() {
        return this.financeId;
    }

    public Integer getBankId() {
        return this.bankId;
    }

    public String getOwnName() {
        return this.ownName;
    }

    public String getRealName() {
        return this.realName;
    }

    public String getPhone() {
        return this.phone;
    }

    public String getIdNum() {
        return this.idNum;
    }

    public Integer getStatus() {
        return this.status;
    }

    public BigDecimal getMoney() {
        return this.money;
    }

    public BigDecimal getRate() {
        return this.rate;
    }

    public Integer getRepayment() {
        return this.repayment;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public String getCombinationName1() {
        return this.combinationName1;
    }

    public String getCombinationPhone1() {
        return this.combinationPhone1;
    }

    public String getCombinationIdnum1() {
        return this.combinationIdnum1;
    }

    public String getCombinationName2() {
        return this.combinationName2;
    }

    public String getCombinationPhone2() {
        return this.combinationPhone2;
    }

    public String getCombinationIdnum2() {
        return this.combinationIdnum2;
    }

    public String getFileInfo() {
        return this.fileInfo;
    }

    public void setFinanceId(final Integer financeId) {
        this.financeId = financeId;
    }

    public void setBankId(final Integer bankId) {
        this.bankId = bankId;
    }

    public void setOwnName(final String ownName) {
        this.ownName = ownName;
    }

    public void setRealName(final String realName) {
        this.realName = realName;
    }

    public void setPhone(final String phone) {
        this.phone = phone;
    }

    public void setIdNum(final String idNum) {
        this.idNum = idNum;
    }

    public void setStatus(final Integer status) {
        this.status = status;
    }

    public void setMoney(final BigDecimal money) {
        this.money = money;
    }

    public void setRate(final BigDecimal rate) {
        this.rate = rate;
    }

    public void setRepayment(final Integer repayment) {
        this.repayment = repayment;
    }

    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(final Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setCombinationName1(final String combinationName1) {
        this.combinationName1 = combinationName1;
    }

    public void setCombinationPhone1(final String combinationPhone1) {
        this.combinationPhone1 = combinationPhone1;
    }

    public void setCombinationIdnum1(final String combinationIdnum1) {
        this.combinationIdnum1 = combinationIdnum1;
    }

    public void setCombinationName2(final String combinationName2) {
        this.combinationName2 = combinationName2;
    }

    public void setCombinationPhone2(final String combinationPhone2) {
        this.combinationPhone2 = combinationPhone2;
    }

    public void setCombinationIdnum2(final String combinationIdnum2) {
        this.combinationIdnum2 = combinationIdnum2;
    }

    public void setFileInfo(final String fileInfo) {
        this.fileInfo = fileInfo;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Finance)) {
            return false;
        } else {
            Finance other = (Finance)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label239: {
                    Object this$financeId = this.getFinanceId();
                    Object other$financeId = other.getFinanceId();
                    if (this$financeId == null) {
                        if (other$financeId == null) {
                            break label239;
                        }
                    } else if (this$financeId.equals(other$financeId)) {
                        break label239;
                    }

                    return false;
                }

                Object this$bankId = this.getBankId();
                Object other$bankId = other.getBankId();
                if (this$bankId == null) {
                    if (other$bankId != null) {
                        return false;
                    }
                } else if (!this$bankId.equals(other$bankId)) {
                    return false;
                }

                Object this$status = this.getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }

                label218: {
                    Object this$repayment = this.getRepayment();
                    Object other$repayment = other.getRepayment();
                    if (this$repayment == null) {
                        if (other$repayment == null) {
                            break label218;
                        }
                    } else if (this$repayment.equals(other$repayment)) {
                        break label218;
                    }

                    return false;
                }

                label211: {
                    Object this$ownName = this.getOwnName();
                    Object other$ownName = other.getOwnName();
                    if (this$ownName == null) {
                        if (other$ownName == null) {
                            break label211;
                        }
                    } else if (this$ownName.equals(other$ownName)) {
                        break label211;
                    }

                    return false;
                }

                Object this$realName = this.getRealName();
                Object other$realName = other.getRealName();
                if (this$realName == null) {
                    if (other$realName != null) {
                        return false;
                    }
                } else if (!this$realName.equals(other$realName)) {
                    return false;
                }

                Object this$phone = this.getPhone();
                Object other$phone = other.getPhone();
                if (this$phone == null) {
                    if (other$phone != null) {
                        return false;
                    }
                } else if (!this$phone.equals(other$phone)) {
                    return false;
                }

                label190: {
                    Object this$idNum = this.getIdNum();
                    Object other$idNum = other.getIdNum();
                    if (this$idNum == null) {
                        if (other$idNum == null) {
                            break label190;
                        }
                    } else if (this$idNum.equals(other$idNum)) {
                        break label190;
                    }

                    return false;
                }

                label183: {
                    Object this$money = this.getMoney();
                    Object other$money = other.getMoney();
                    if (this$money == null) {
                        if (other$money == null) {
                            break label183;
                        }
                    } else if (this$money.equals(other$money)) {
                        break label183;
                    }

                    return false;
                }

                Object this$rate = this.getRate();
                Object other$rate = other.getRate();
                if (this$rate == null) {
                    if (other$rate != null) {
                        return false;
                    }
                } else if (!this$rate.equals(other$rate)) {
                    return false;
                }

                label169: {
                    Object this$createTime = this.getCreateTime();
                    Object other$createTime = other.getCreateTime();
                    if (this$createTime == null) {
                        if (other$createTime == null) {
                            break label169;
                        }
                    } else if (this$createTime.equals(other$createTime)) {
                        break label169;
                    }

                    return false;
                }

                Object this$updateTime = this.getUpdateTime();
                Object other$updateTime = other.getUpdateTime();
                if (this$updateTime == null) {
                    if (other$updateTime != null) {
                        return false;
                    }
                } else if (!this$updateTime.equals(other$updateTime)) {
                    return false;
                }

                label155: {
                    Object this$combinationName1 = this.getCombinationName1();
                    Object other$combinationName1 = other.getCombinationName1();
                    if (this$combinationName1 == null) {
                        if (other$combinationName1 == null) {
                            break label155;
                        }
                    } else if (this$combinationName1.equals(other$combinationName1)) {
                        break label155;
                    }

                    return false;
                }

                Object this$combinationPhone1 = this.getCombinationPhone1();
                Object other$combinationPhone1 = other.getCombinationPhone1();
                if (this$combinationPhone1 == null) {
                    if (other$combinationPhone1 != null) {
                        return false;
                    }
                } else if (!this$combinationPhone1.equals(other$combinationPhone1)) {
                    return false;
                }

                Object this$combinationIdnum1 = this.getCombinationIdnum1();
                Object other$combinationIdnum1 = other.getCombinationIdnum1();
                if (this$combinationIdnum1 == null) {
                    if (other$combinationIdnum1 != null) {
                        return false;
                    }
                } else if (!this$combinationIdnum1.equals(other$combinationIdnum1)) {
                    return false;
                }

                label134: {
                    Object this$combinationName2 = this.getCombinationName2();
                    Object other$combinationName2 = other.getCombinationName2();
                    if (this$combinationName2 == null) {
                        if (other$combinationName2 == null) {
                            break label134;
                        }
                    } else if (this$combinationName2.equals(other$combinationName2)) {
                        break label134;
                    }

                    return false;
                }

                label127: {
                    Object this$combinationPhone2 = this.getCombinationPhone2();
                    Object other$combinationPhone2 = other.getCombinationPhone2();
                    if (this$combinationPhone2 == null) {
                        if (other$combinationPhone2 == null) {
                            break label127;
                        }
                    } else if (this$combinationPhone2.equals(other$combinationPhone2)) {
                        break label127;
                    }

                    return false;
                }

                Object this$combinationIdnum2 = this.getCombinationIdnum2();
                Object other$combinationIdnum2 = other.getCombinationIdnum2();
                if (this$combinationIdnum2 == null) {
                    if (other$combinationIdnum2 != null) {
                        return false;
                    }
                } else if (!this$combinationIdnum2.equals(other$combinationIdnum2)) {
                    return false;
                }

                Object this$fileInfo = this.getFileInfo();
                Object other$fileInfo = other.getFileInfo();
                if (this$fileInfo == null) {
                    if (other$fileInfo != null) {
                        return false;
                    }
                } else if (!this$fileInfo.equals(other$fileInfo)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Finance;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $financeId = this.getFinanceId();
        result = result * 59 + ($financeId == null ? 43 : $financeId.hashCode());
        Object $bankId = this.getBankId();
        result = result * 59 + ($bankId == null ? 43 : $bankId.hashCode());
        Object $status = this.getStatus();
        result = result * 59 + ($status == null ? 43 : $status.hashCode());
        Object $repayment = this.getRepayment();
        result = result * 59 + ($repayment == null ? 43 : $repayment.hashCode());
        Object $ownName = this.getOwnName();
        result = result * 59 + ($ownName == null ? 43 : $ownName.hashCode());
        Object $realName = this.getRealName();
        result = result * 59 + ($realName == null ? 43 : $realName.hashCode());
        Object $phone = this.getPhone();
        result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
        Object $idNum = this.getIdNum();
        result = result * 59 + ($idNum == null ? 43 : $idNum.hashCode());
        Object $money = this.getMoney();
        result = result * 59 + ($money == null ? 43 : $money.hashCode());
        Object $rate = this.getRate();
        result = result * 59 + ($rate == null ? 43 : $rate.hashCode());
        Object $createTime = this.getCreateTime();
        result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $updateTime = this.getUpdateTime();
        result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode());
        Object $combinationName1 = this.getCombinationName1();
        result = result * 59 + ($combinationName1 == null ? 43 : $combinationName1.hashCode());
        Object $combinationPhone1 = this.getCombinationPhone1();
        result = result * 59 + ($combinationPhone1 == null ? 43 : $combinationPhone1.hashCode());
        Object $combinationIdnum1 = this.getCombinationIdnum1();
        result = result * 59 + ($combinationIdnum1 == null ? 43 : $combinationIdnum1.hashCode());
        Object $combinationName2 = this.getCombinationName2();
        result = result * 59 + ($combinationName2 == null ? 43 : $combinationName2.hashCode());
        Object $combinationPhone2 = this.getCombinationPhone2();
        result = result * 59 + ($combinationPhone2 == null ? 43 : $combinationPhone2.hashCode());
        Object $combinationIdnum2 = this.getCombinationIdnum2();
        result = result * 59 + ($combinationIdnum2 == null ? 43 : $combinationIdnum2.hashCode());
        Object $fileInfo = this.getFileInfo();
        result = result * 59 + ($fileInfo == null ? 43 : $fileInfo.hashCode());
        return result;
    }

    public String toString() {
        return "Finance(financeId=" + this.getFinanceId() + ", bankId=" + this.getBankId() + ", ownName=" + this.getOwnName() + ", realName=" + this.getRealName() + ", phone=" + this.getPhone() + ", idNum=" + this.getIdNum() + ", status=" + this.getStatus() + ", money=" + this.getMoney() + ", rate=" + this.getRate() + ", repayment=" + this.getRepayment() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ", combinationName1=" + this.getCombinationName1() + ", combinationPhone1=" + this.getCombinationPhone1() + ", combinationIdnum1=" + this.getCombinationIdnum1() + ", combinationName2=" + this.getCombinationName2() + ", combinationPhone2=" + this.getCombinationPhone2() + ", combinationIdnum2=" + this.getCombinationIdnum2() + ", fileInfo=" + this.getFileInfo() + ")";
    }
}
